//
//  GesturePwView.h
//  PerfectProject
//
//  Created by Meng huan on 14/12/17.
//  Copyright (c) 2014年 M.H Co.,Ltd. All rights reserved.
//

#import <UIKit/UIKit.h>

/**
 *  手势密码
 */
@interface GesturePwView : UIView

#pragma mark - 手势密码移动状态回调
/**
 *  手势开始
 *  手势结果
 *  手势取消
 */
@property (nonatomic, copy) void (^gesturePwBeginWithPasscode)(NSString *result);
@property (nonatomic, copy) void (^gesturePwEndWithPasscode)(NSString *result);
@property (nonatomic, copy) void (^gesturePwCancelWithPasscode)(NSString *result);


@property (nonatomic, strong, readonly) NSArray *buttons;
@property (nonatomic, strong, readonly) NSMutableArray *selectedButtons;

@property (nonatomic, assign) NSUInteger numberOfGestureNodes;
@property (nonatomic, assign) NSUInteger gestureNodesPerRow;

@property (nonatomic, strong) UIImage *normalGestureNodeImage;
@property (nonatomic, strong) UIImage *selectedGestureNodeImage;

@property (nonatomic, strong) UIColor *lineColor;   // 手势连线的颜色
@property (nonatomic, assign) CGFloat lineWidth;    // 手势连线的宽度

@property (nonatomic, strong, readonly) UIView *contentView;    // 手势容器view
@property (nonatomic, assign) UIEdgeInsets contentInsets;


@end
